package com.htzz.collection.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * 设备ID+分页查询做条件的查询工具类
 * @author xudezhi
 * @title: QueryParam3Dto
 * @projectName collection
 * @description: 根据设备id+分页做查询
 * @date 2021/8/308:48
 */
@ApiModel(value = "设备ID+分页查询做条件的查询工具类",description = "根据设备ID+分页查询的工具类")
@Data
public class QueryParam3Dto {

    @NotEmpty
    @ApiModelProperty(value = "设备ID",example = "sn19990111",required = true)
    private String devId;

    @Min(1)
    @ApiModelProperty(value = "当前页",example = "1",required = true)
    private int currentPage=1; //默认值 10

    @Min(1)
    @Max(5000)
    @ApiModelProperty(value = "每页条数",example = "10",required = true)
    private int pagesize=10; //默认值 10
}
